package com.fat.spzx.manager.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRoleUserMapper {


    /**
     * 根据用户id删除用户角色关联表数据
     */
    @Delete("delete from sys_user_role where user_id = #{userId}")
    void deleteByUserId(Long userId);

    void saveSysRoleUser(Long userId, Long roleId);

    List<Long> selectRoleIdByUserId(Long userId);
}
